<div id="tiga_ba">
	<div id="tiga_baa">Ubah Data Jenis Layanan</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<?php
	$id=$_GET['id'];
	$sql="select * from jenis_layanan where id_jenis_layanan = $id";
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_jlayanan&act=update" onsubmit="return gsValidate('jenis','Jenis Layanan Harus Diisi','required');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Jenis Layanan</td>
			<td>&nbsp;</td>
			<td>
				<input name="jenis" type="text" class="input2" id="jenis" maxlength="50" value="<?php echo $hasil['jenis_layanan']?>"/>
				<input name="id" type="hidden" id="id" value="<?php echo $hasil['id_jenis_layanan']?>" />
				<span class="red">*</span>
			</td>
		</tr>
		<tr>
			<td>Layanan</td>
			<td>&nbsp;</td>
			<td>
				<select name="layanan" class="input2">
					<?php
						if($hasil['kode'] == '1'){
							echo "<option value=1 selected=selected>Rawat Jalan</option>
								<option value=2>Rawat Inap</option>";
						}else{
							echo "<option value=1>Rawat Jalan</option>
								<option value=2 selected=selected>Rawat Inap</option>";
						}
					?>
					
				</select>
				<span class="red">*</span>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Ubah" /></td>
		</tr>
	</table>
</form>		
            
        